import java.util.Arrays;

public class Text {



    public static void main(String[] args) {

        int[] array = {17,4,7,2,13,8,5};
        textSort(array);
        //textinsertSort(array);
        //textshellSort(array);
        //textquickSort(array);
        //textmargeSort(array);
        //textbbruleSort(array);
        //textheapSort(array);
        //textquick2Sort(array);
        //textquickSort(array);
        textmargeSort2Sort(array);
    }

    public static void textmargeSort2Sort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.margeSort2(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textquick2Sort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.quickSort2(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textbbruleSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.bbruleSort(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textheapSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.heapSort(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textmargeSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.margeSort(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.SelectSort(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textinsertSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.insertSort(a);
        System.out.println(Arrays.toString(a));
    }

    public static void textshellSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.ShellSort(a);
        System.out.println(Arrays.toString(a));
    }
    public static void textquickSort(int[] array){
        int[] a = Arrays.copyOf(array,array.length);
        Sort.quickSort(a);
        System.out.println(Arrays.toString(a));
    }

}
